package com.ls.lserp.dbaccess.Dao;

import java.util.List;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.dbaccess.Entity.ContractProcessingEntity;
import com.ls.lserp.dbaccess.Entity.ContractProcessingEntityWithBLOBs;
@MyBatisDao
public interface ContractProcessingEntityMapper extends CrudDao<ContractProcessingEntity>{
    int deleteByPrimaryKey(Long contractProcessId);

    int insert(ContractProcessingEntityWithBLOBs record);

    int insertSelective(ContractProcessingEntityWithBLOBs record);

    ContractProcessingEntityWithBLOBs selectByPrimaryKey(Long contractProcessId);

    int updateByPrimaryKeySelective(ContractProcessingEntityWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(ContractProcessingEntityWithBLOBs record);

    int updateByPrimaryKey(ContractProcessingEntity record);
    /**
     * @Description 定时获取数据供财务业务结算使用
     * @param contractProcessingEntity
     * @return
     */
    List<ContractProcessingEntity> findListForFinance(ContractProcessingEntity contractProcessingEntity);
    /**
     * @Description 更新定时获取的数据状态
     * @param contractProcessingEntity
     */
    int updateStatus(ContractProcessingEntity contractProcessingEntity);
}